package com.itheima.countdownlatchdemo;

import java.util.concurrent.CountDownLatch;

public class YunDongYuan implements Runnable {

    private CountDownLatch lock;

    public YunDongYuan(CountDownLatch lock) {
        this.lock = lock;
    }


    @Override
    public void run() {
        System.out.println(Thread.currentThread().getName()+"趴那了");
        lock.countDown();;


    }
}
